Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error bars #113

Closed
wants to merge 22 commits into from
Closed

Error bars #113

wants to merge 22 commits into from

Conversation

daniloaf
Copy link

This pull request contains the changes to use error bars using standard deviation on timeline plots

daniloaf and others added 14 commits June 17, 2011 12:55
- Working with error bars on Timeline view
- Updating jqPlot to 1.0.0b2
- Adding new js file (jqplot.ohlcRendererWithErrorBars.min.js), which is a modified OHLCRenderer to allow rendering error bars
- Adding new option to settings.py (use_error_bars) to choose to use error bars or not
- Adding a checkbox to toggle error bars on or off
- Updating jqPlot to 1.0.0b2
- Adding new js file (jqplot.ohlcRendererWithErrorBars.min.js), which is a modified OHLCRenderer to allow rendering error bars
- Adding new option to settings.py (use_error_bars) to choose to use error bars or not
@tobami
Copy link
Owner

tobami commented Mar 18, 2012

Awesome. Will test it thoroughly with different data sets

@tobami
Copy link
Owner

tobami commented Mar 25, 2012

The error bars look great. Some point to notice:

  • The span for the "Show error bars" input option is missing the css class "options", and as a result appears too big
  • There is too much padding in the graph, specially on the left side
  • For some reason, PyPy's sphinx benchmark timeline doesn't render at all

@tobami
Copy link
Owner

tobami commented Mar 25, 2012

Also, is there a reason why you are using jqplot.ohlcRendererWithErrorBars.js instead of the minified version?

@tobami
Copy link
Owner

tobami commented Mar 25, 2012

The zoom doesn't seem to work either...

@tobami
Copy link
Owner

tobami commented Mar 25, 2012

Other than those details, the error bars seem very usable, so that they could be turned on by default. Good work.

@daniloaf
Copy link
Author

Thanks :)

I'll fix these problems and pull request again. About the minified version, I just forgot to do it.

@daniloaf
Copy link
Author

The last two commits added the class "options" to the error bars options span, changed the jqplot.ohlcRendererWithErrorBars to the minified version and the option to show the error bars is on by default.

The zoom is working fine here.

I guess the padding problem is because the number of series in the plot. I'll remove the error bars series from this calcultion.

Can you provide me the data with PyPy's sphinx benchmark?

Thanks

@daniloaf
Copy link
Author

I just removed the padding when using error bars

@tobami
Copy link
Owner

tobami commented Mar 31, 2012

the too big padding happens when the legend is inside the plot. See this screenshot

@tobami
Copy link
Owner

tobami commented Mar 31, 2012

Another issue is that this branch added the file jquery-1.6.2.min.js while the base template is already using the (also present) file jquery-1.7.1.min.js. A cleanup would be in order, possibly just removing those two files and adding jquery-1.7.2.min.js

- BUGFIX: error bars were not being ploted
- BUGFIX: fixing padding inside charts in timeline view
@str4d
Copy link
Contributor

str4d commented May 14, 2016

This PR is quite old now, and conflicts with the comprehensive upgrade PR I just opened (#199). But the actual changes look similar to something I am trying to implement (support for benchmarks with median+quartile data instead of mean+std_dev), and I might be able to leverage any overlap. If no one has objections, I'll have a go at cherry-picking the implementation out of this PR.

@str4d
Copy link
Contributor

str4d commented May 14, 2016

I have recreated this PR on top of #199 in this branch. I'll make a PR for it if/when #199 is merged (because GitHub doesn't allow changing the branch that a PR should be merged into).

@tobami
Copy link
Owner

tobami commented May 17, 2016

@str4d that sounds great! I'll close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants